<!DOCTYPE html>
<!--01.尚硅谷_css2.1_定位&盒模型相关-->
<!--
	百分比参照于谁
			width margin padding:包含块的width
			height:包含块的height
			
			left:包含块的width
			top :包含块的height
-->
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<style type="text/css">
			*{
				margin: 0;
				padding: 0;
			}
			#wrap{
				width: 300px;
				height: 400px;
				margin: 100px;
				padding: 50px;
				background: deeppink;
			}
			#inner{
				width: 50%;   
				height: 50%;
				margin: 10%;
				padding: 10%;
				background: pink;
			}
		</style>
	</head>
	<body>
		<div id="wrap">
			<div id="inner"></div>
		</div>
	</body>
</html>
